<template>
  <div class="components-layout-demo-basic">
    <a-layout>
      <a-layout-header style="height: 10%; background-color: gainsboro;margin: 0 auto;">
        <certer><h1>A28曲线折线</h1></certer></a-layout-header>
      <a-layout>
        <a-layout-sider style="width: 70%;height: 90%;background-color: aliceblue"><Slider1 @father="updateDataSource" :dataSource="dataSource"></Slider1></a-layout-sider>
        <a-layout-content style="width: 30%;height: 90%;background-color: aliceblue"><Table1 :dataSource="dataSource"></Table1></a-layout-content>
      </a-layout>
    <!--  <a-layout-footer style="height: 10%;background-color: aliceblue">Footer</a-layout-footer>-->
    </a-layout>
  </div>
</template>

<script>
import Slider1 from "@/components/Slider1"
import Table1 from "@/components/Table1"
export default {
  name: 'HelloWorld',
  components:{
    Slider1,
    Table1
  },
  props: {
    msg: String
  },
  data(){
    return{
      dataSource:{
        image:require('@/assets/image/01.jpg'),
        dataSource: [
          {
            x: '1',
            y: '2'
          },
          {
            x: '2',
            y: '2'
          },
          {
            x: '3',
            y: '2'
          },
          {
            x: '4',
            y: '5'
          },
          {
            x: '6',
            y: '8'
          },

        ],
        max:{
          x:'1',
          y:'2'
        }
      },
    }
  },
  methods:{
    updateDataSource(value){
      this.dataSource=value
    }
  }
}
</script>

<!-- Add "scoped" attribute to limit CSS to this component only -->
<style scoped>
#components-layout-demo-basic {
  text-align: center;
}
#components-layout-demo-basic .ant-layout-header,
#components-layout-demo-basic .ant-layout-footer {
  background: #7dbcea;
  color: #fff;
}
#components-layout-demo-basic .ant-layout-footer {
  line-height: 1.5;
}
#components-layout-demo-basic .ant-layout-sider {
  background: #3ba0e9;
  color: #fff;
  line-height: 120px;
}
#components-layout-demo-basic .ant-layout-content {
  background: rgba(16, 142, 233, 1);
  color: #fff;
  min-height: 120px;
  line-height: 120px;
}
#components-layout-demo-basic > .ant-layout {
  margin-bottom: 48px;
}
#components-layout-demo-basic > .ant-layout:last-child {
  margin: 0;
}
</style>
